<?php

return [
    [
        'label'   => '广告管理',
        'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
        'match'   => '@^/ad/.*@',
        'visible' => true,
        'icon' => 'fa fa-bar-chart',
        // items可以为空，即没下级菜单
        'items'   => [
            [
                'label' => '广告列表',
                'url'   => ['/ad/item'],
                'match' => '@^/ad/item.*@',
                'auth'  => [
                    'route:ad/item/index',
                    'route:ad/item/view',
                    'route:ad/item/update',
                    'route:ad/item/delete',
                ],
            ],
            [
                'label' => '广告位列表',
                'url'   => ['/ad/position'],
                'match' => '@^/ad/position.*@',
                'auth'  => [
                    'route:ad/position/index',
                    'route:ad/position/view',
                    'route:ad/position/update',
                    'route:ad/position/delete',
                ],
            ],
        ],
    ],
];
